package com.itheima.demo1;

import javax.swing.*;
import java.util.Scanner;

public class Practice4 {
    /*
      需求:
      根据学生成绩.给出对应的评价
     */
    public static void main(String[] args) {
        System.out.println("请输出成绩:");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        if (num>=90 && num<=100){
            System.out.println("优秀");
        }else if (num>=80 && num<=89){
            System.out.println("良好");
        } else if (num>=70 && num<=79) {
            System.out.println("中等");
        } else if (num >= 60 && num <= 69) {
            System.out.println("及格");
        } else if (num>=0 && num <=59) {
            System.out.println("请努力加油!!");
        } else  {
            System.out.println("输入错误!");
        }
    }
}
